package com.wxy.config;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Configuration		//配置类声明
@ComponentScan(value ="com.wxy")	//扫描包
@MapperScan(value="com.wxy.dao")		//扫描mapper
@EnableTransactionManagement		//事务管理注解
@EnableAspectJAutoProxy				//aop
public @interface spring {

}
